# -*— coding: utf-8 -*-
#
# @Time : 2023/10/08 20:43
# @Author : LeeLU
# @File : demi.py
# @IDE : PyCharm
# @Email : luxuan888@vip.qq.com
# @Wechat : qianyongbuwan
def keys():
    try:
        with open('key.txt', 'r', encoding='utf-8') as f:
            lines=f.readlines()
            xh_appid=lines[0]
            realappid = str(xh_appid[7:len(xh_appid)-1])
            xh_APISecret=lines[1]
            realAPISecret=str(xh_APISecret[11:len(xh_APISecret)-1])
            xh_APIKey=lines[2]
            realAPIKey=str(xh_APIKey[8:len(xh_APIKey)-1])
        return realappid,realAPISecret,realAPIKey
    except:
        print('key.txt文件不存在或者未设置！')
